<ul>
<?php foreach ($this->get_data('images') as $name => $src): ?>
    <li>
        <a href="javascript:;">
        <img src="<?php echo tos_cdn_url($src);?>" onclick="cdn.select_image('<?php echo $src;?>');"/>
        <span class="name"><?php echo $name;?></span>
        </a>
    </li>
<?php endforeach; ?>
</ul>